package com.sddm.printServer.entiy;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.print.PrintService;
import java.io.Serializable;
import java.util.List;

/**
 * 回调信息
 * @author wyh
 * @version 1.0
 * @date 2022/4/8 23:38
 */

@AllArgsConstructor
@Data
public class CallBack implements Serializable {

    //状态码
    private Integer code;
    //用户Id
    private String customerId;
    //消息体
    private String message;
    //打印机列表
    private PrintService[] printList;

    public CallBack(Integer code, String customerId, String message) {
        this.code = code;
        this.customerId = customerId;
        this.message = message;
    }

    public CallBack(String customerId, String message) {
        this.code = 200;
        this.customerId = customerId;
        this.message = message;
        this.printList = null;
    }

    public CallBack() {
    }
}
